{% extends "../master.html" %}

{% block header %}
    {% include "../header.html" %}
{% endblock %}

{% block menu %}
    {% include "menu.html" %}
{% endblock %}

{% block page %}
    {% if admin %}
    <form class="form" action="/size/save" method="post">
    <div class="button">
        <h3>Name:</h3>
        <input name="name" value="{{ size_to_edit.name }}" type="text" />
        <h3>Width:</h3>
        <input name="width" value="{{ size_to_edit.width }}" type="text" />
        <p>
          <b>Default:</b>
            {% if size_to_edit.default %}
                <input name="default" checked="checked" type="checkbox" />
            {% else %}
                <input name="default" type="checkbox" />
            {% endif %}
        </p>
        <p>
            <input name="cancel" value="Cancel" type="submit" /> |
            <input name="save" value="Save" type="submit" /> |
            <input name="new" value="New" type="submit" /> |
            <input name="delete" value="Delete" type="submit" />
        </p>
        <input name="size_to_edit_key" value="{{ size_to_edit.key }}" type="hidden" />
        <input name="size_key" value="{{ size.key }}" type="hidden" />
        <input name="language_key" value="{{ language.key }}" type="hidden" />
    </div>
    </form>
    {% endif %}
{% endblock %}

{% block footer %}
    {% include "../footer.html" %}
{% endblock %}
